<extend name="Public/base"/>
<block name="body">
    <section class="content">
        <div id="main-content">

            <div id="main" style="overflow-y: auto; overflow-x: hidden; min-height: 369px;">

                <!-- nav -->
                <!-- nav -->


                <div class="admin-main-container">

                    <script type="text/javascript" src="/Public/static/uploadify/jquery.uploadify.min.js"></script>
                    <div class="main-title cf">
                        <h2>添加图片</h2>
                    </div>
                    <div class="with-padding">
                        <form action="{:addons_url('Slide://Slide/picadd')}" class="form-horizontal" method="post">
                            <div class="form-item cf">
                                <label class="item-label">
                                    图片的描述(可选)            </label>
                                <div class="controls">
                                    <input type="text" name="info" class="form-control text form-input-width" value="">
                                </div>
                            </div><div class="form-item cf">
                            <label class="item-label">
                                图片的链接(外部地址必须加上http协议)            </label>
                            <div class="controls">
                                <input type="text" name="href" class="form-control text form-input-width" value="">
                            </div>
                                <input type="hidden" name="pid" value="<?php echo $pid;?>">
                        </div>
                            <label class="item-label">漂浮图片</label>
                            <div class="controls">
                                {:W('Common/UploadImage/render',array(array('name'=>'img','id'=>'img','value'=>$_list[0]['img'])))}

                            </div>
                            <div style="margin-top: 10px">

                                <button type="submit" class="btn submit-btn ajax-post" target-form="form-horizontal">确 定</button>
                                <button class="btn btn-return" onclick="javascript:history.back(-1);return false;">返 回</button>
                            </div>
                        </form></div>


                </div>


            </div>

        </div>
    </section>

</block>